package cn.flying.cloud.esb.core.model;

/**
 * 字段映射关系
 * @author: admin
 * @date: 2025年01月09日 14:51
 * @version: 1.0
 */
public class FieldMapping {
    private String sourcePath;
    private String targetPath;
    private Class<?> type; // 可选: 指定目标字段的数据类型

    public FieldMapping(String sourcePath, String targetPath) {
        this.sourcePath = sourcePath;
        this.targetPath = targetPath;
    }

    public FieldMapping(String sourcePath, String targetPath, Class<?> type) {
        this(sourcePath, targetPath);
        this.type = type;
    }

    public String getSourcePath() {
        return sourcePath;
    }

    public void setSourcePath(String sourcePath) {
        this.sourcePath = sourcePath;
    }

    public String getTargetPath() {
        return targetPath;
    }

    public void setTargetPath(String targetPath) {
        this.targetPath = targetPath;
    }

    public Class<?> getType() {
        return type;
    }

    public void setType(Class<?> type) {
        this.type = type;
    }
}